package com.pubg.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户类
 * @author 王五
 */
public class User implements Serializable {

    //user_account
    //编号
    private int id;
    //账号
    private String loginName;
    //密码
    private String password;
    //登陆权限，是否是管理员  0s 普通用户 1管理员
    private int type;

    //user_info
    //姓名
    private String userName;
    //性别
    private int gender;
    //地址
    private String address;
    //手机号
    private String telephone;
    //生日
    private Date birthday;
    //邮箱
    private String email;

    public User(int id, String loginName, String password, int type, String userName, int gender, String address, String telephone, Date birthday, String email) {
        this.id = id;
        this.loginName = loginName;
        this.password = password;
        this.type = type;
        this.userName = userName;
        this.gender = gender;
        this.address = address;
        this.telephone = telephone;
        this.birthday = birthday;
        this.email = email;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public int getGender() {
        return gender;
    }

    public void setGender(int gender) {
        this.gender = gender;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public User() {
    }
}
